package com.xiaoy.core.database.entity;

public class Sequence {
	
	private String name;
	private String minValue = "1";
	private String maxValue = "999999999999999999999999999";
	private String start = "1";
	private String increment = "1";
	private String cache = "20";
	
	public Sequence () {}
	
	public Sequence (String name) {
		this.name=name;
	}
	
	public Sequence (String name,String increment){
		this(name);
		this.increment=increment;
	}
	
	public Sequence (String name,String minValue,String maxValue) {
		this(name);
		this.maxValue=maxValue;
		this.minValue=minValue;
	}
	
	public Sequence (String name,String minValue,String maxValue,String increment) {
		this(name,minValue,maxValue);
		this.increment=increment;
	}
	
	public Sequence (String name,String minValue,String maxValue,String start,String increment) {
		this(name,minValue,maxValue,increment);
		this.start=start;
	}
	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getMinValue() {
		return minValue;
	}


	public void setMinValue(String minValue) {
		this.minValue = minValue;
	}


	public String getMaxValue() {
		return maxValue;
	}


	public void setMaxValue(String maxValue) {
		this.maxValue = maxValue;
	}


	public String getStart() {
		return start;
	}


	public void setStart(String start) {
		this.start = start;
	}


	public String getIncrement() {
		return increment;
	}


	public void setIncrement(String increment) {
		this.increment = increment;
	}


	public String getCache() {
		return cache;
	}


	public void setCache(String cache) {
		this.cache = cache;
	}


	public String toString () {
		
		return "create sequence " + name + 
				" minvalue " + minValue + 
				" maxvalue " + maxValue + 
				" start with " + start + 
				" increment  by " + increment + 
				" cache " + cache;
	}
}
